package com.juzi.wopu.query;

public class SysUserRoleQuery extends BaseQuery{
	
	private Long iCompany;
	
	private Long iUserId;
	
	private Long iRole;

	public SysUserRoleQuery() {
		super("SysUserRole");
	}
	
	@Override
	protected void addWhere() {
		if (iCompany!=null && iCompany!=-1L) {
			AddWhere("o.iCompany = ?", iCompany);
		}
		
		if (iUserId!=null && iUserId!=-1L) {
			AddWhere("o.iUserId = ?", iUserId);
		}
		
		if (iRole!=null && iRole!=-1L) {
			AddWhere("o.iRole = ?", iRole);
		}
	}

	public Long getiCompany() {
		return iCompany;
	}

	public void setiCompany(Long iCompany) {
		this.iCompany = iCompany;
	}
	
	public Long getICompany() {
		return iCompany;
	}

	public void setICompany(Long iCompany) {
		this.iCompany = iCompany;
	}

	public Long getiUserId() {
		return iUserId;
	}

	public void setiUserId(Long iUserId) {
		this.iUserId = iUserId;
	}

	public Long getiRole() {
		return iRole;
	}

	public void setiRole(Long iRole) {
		this.iRole = iRole;
	}
	
	public Long getIUserId() {
		return iUserId;
	}

	public void setIUserId(Long iUserId) {
		this.iUserId = iUserId;
	}

	public Long getIRole() {
		return iRole;
	}

	public void setIRole(Long iRole) {
		this.iRole = iRole;
	}
}

